<?php echo $this->fetch('header.html'); ?>
<script type="text/javascript">
    $(function() {
        $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
        $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>
<div id="rightTop">
    <p>操作日志</p>
    <ul class="subnav">
        <li><span>管理</span></li>
    </ul>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input type="hidden" name="app" value="admin_log" />
                <input type="hidden" name="act" value="index" />
                操作人:<input class="queryInput" type="text" value="<?php echo $this->_var['query']['admin_name']; ?>" name="admin_name" />
                时间由:<input class="queryInput" type="text" value="<?php echo $this->_var['query']['add_time_from']; ?>" id="add_time_from" name="add_time_from" class="pick_date" />
                至:<input class="queryInput" type="text" value="<?php echo $this->_var['query']['add_time_to']; ?>" id="add_time_to" name="add_time_to" class="pick_date" />
                <input type="submit" class="formbtn" value="查询" />
            </div>
            <?php if ($this->_var['filtered']): ?>
            <a class="left formbtn1" href="index.php?app=admin_log">撤销检索</a>
            <?php endif; ?>
        </form>
    </div>
    <div class="fontr"><?php echo $this->fetch('page.top.html'); ?></div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <?php if ($this->_var['admin_log_list']): ?>
        <tr class="tatr1">
            <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
            <td width="200"><span ectype="order_by" fieldname="admin_id">操作人</span></td>
            <td width="200"><span ectype="order_by" fieldname="createtime">时间</span></td>
            <td width="200">行为</td>
            <td width="200"><span ectype="order_by" fieldname="ip">IP</span></td>
            <td><span ectype="order_by" fieldname="url">链接参数</span></td>
        </tr>
        <?php endif; ?>
        <?php $_from = $this->_var['admin_log_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'admin_log');if (count($_from)):
    foreach ($_from AS $this->_var['admin_log']):
?>
        <tr class="tatr2">
            <td class="firstCell"><input type="checkbox" class="checkitem" value="<?php echo $this->_var['admin_log']['id']; ?>" /></td>
            <td><?php echo htmlspecialchars($this->_var['admin_log']['admin_name']); ?></td>
            <td><?php echo local_date("Y-m-d H:i:s",$this->_var['admin_log']['createtime']); ?></td>
            <td><?php echo htmlspecialchars($this->_var['admin_log']['content']); ?></td>
            <td><?php echo htmlspecialchars($this->_var['admin_log']['ip']); ?></td>
            <td><?php echo $this->_var['admin_log']['url']; ?></td>
        </tr>
        <?php endforeach; else: ?>
        <tr class="no_data">
            <td colspan="10">没有符合条件的记录</td>
        </tr>
        <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </table>
	<?php echo $this->fetch('page.top.html'); ?>
</div>
<?php echo $this->fetch('footer.html'); ?>